import { Message } from '@arco-design/web-vue';
/**
 * 回调结果提示
 */
interface resultRule {
  result: boolean;
  code: number;
  data: any;
}
export default function resultTips(res: resultRule) {
  if (res?.result) {
    Message[res.data.result ? 'success' : 'error'](
      `操作${res.data.result ? '成功' : '失败'}`
    );
  }
  return res.data.result;
}
